xl: remove another string literal from config struct
authorIan Campbell <ian.campbell@citrix.com>
Fri, 10 Sep 2010 17:44:09 +0000 (18:44 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 10 Sep 2010 17:44:09 +0000 (18:44 +0100)
Broken by 22124:098790dd9327 "xl: use xlu_cfg_replace_string in a few more places"

[ Identical patch submitted by both Ian C and Gianni ]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 1259cd159cc22f103bbde9a8072a2ce146c4c2ac..c8df350be99362b4913394923ec3f867f11ef54d 100644 (file)
@@ -274,7 +274,7 @@ static void init_build_info(libxl_domain_build_info *b_info, libxl_domain_create
     if (c_info->hvm) {
         b_info->shadow_memkb = 0; /* Set later */
         b_info->video_memkb = 8 * 1024;
-        b_info->kernel.path = "hvmloader";
+        b_info->kernel.path = strdup("hvmloader");
         b_info->hvm = 1;
         b_info->u.hvm.pae = 1;
         b_info->u.hvm.apic = 1;